package com.lex.crossgate.admin.modules.sys.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 角色与机构对应关系
 * </p>
 *
 * @author 李贝留斯
 * @since 2018-05-22
 */
@TableName("sys_role_org")
public class SysRoleOrg extends Model<SysRoleOrg> {

    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    private String id;
    /**
     * 角色ID
     */
    @TableField("role_id")
    private String roleId;
    /**
     * 机构ID
     */
    @TableField("org_id")
    private String orgId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RoleOrg{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", orgId=" + orgId +
                "}";
    }
}